using UnityEngine;
using System.Collections;


//---------------------------------------------------------------------------------------------------------
// Script for a trigger to change the medium of all ships
//---------------------------------------------------------------------------------------------------------

public class TriggMovementExternalData : MonoBehaviour
{
	public float				m_fTimeToFullyTakeEffect		= 0.0f;
	public SideScrollExternData	m_sedMediumData;
	
	
	void OnTriggerEnter (Collider _cOther) 
    {
		// We send the controller this script so it gets access to SideScrollExternData	m_sedMediumData
		// as a ref
		// otherwise we would have to pass the entire thing (and I think that since it is serializable it would make an entire copy) (ED)
		_cOther.gameObject.SendMessage("GetNewMediumFromTrigger", this);
    }
}

